imx8: add mmu and dram related functions
authorPeng Fan <[email protected]>
Thu, 18 Oct 2018 12:28:21 +0000 (14:28 +0200)
committerStefano Babic <[email protected]>
Mon, 22 Oct 2018 10:59:01 +0000 (12:59 +0200)
commit930b59529176bb05ea61ef9a40bf6384227f991e
treef7f325cf692e2cf15b4b8e9704352a60ca0d04a7
parentc1aae21d89108adcfc4316a5a073e3ff1f972a2c
imx8: add mmu and dram related functions

Add mmu memmap, some memory regions are reserved by M4, Arm Trusted
Firmware, so need to get memreg using SCFW API and setup the memmap.

Add dram_init, dram_init_banksize, get_effective_memsize functions,
according to the memreg.

Signed-off-by: Peng Fan <[email protected]>
Reviewed-by: Anatolij Gustschin <[email protected]>
Cc: Stefano Babic <[email protected]>
arch/arm/mach-imx/imx8/cpu.c